home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / system / mail / transpor / ifmail23.z / ifmail23 / ifmail / iflib / strcasecmp.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-08-31  |  194 b   |  14 lines

  1. #include <ctype.h>
  2.  
  3. int
  4. strcasecmp(s1,s2)
  5. register unsigned char *s1, *s2;
  6. {
  7.     while (*s1 && *s2 && (toupper(*s1) == toupper(*s2)))
  8.     {
  9.         s1++;
  10.         s2++;
  11.     }
  12.     return (toupper(*s1) - toupper(*s2));
  13. }
  14.